﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="checkout.aspx.cs" Inherits="cart.web.checkout" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>输入一个配送地址</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table width="641" border="1" align="center">
            <tr>
                <td width="107">
                    姓名：
                </td>
                <td width="636">
                    <label>
                        &nbsp;<asp:TextBox ID="tbUserName" runat="server"></asp:TextBox>
                    &nbsp;<asp:RequiredFieldValidator ID="rfvUserName" runat="server" 
                        ControlToValidate="tbUserName" ErrorMessage="收货人姓名不能为空！"></asp:RequiredFieldValidator>
                    </label>
                </td>
            </tr>
            <tr>
                <td>
                    地址：
                </td>
                <td>
                    <label>
                        &nbsp;<asp:TextBox ID="tbAddr" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvUserAddr" runat="server" 
                        ControlToValidate="tbAddr" ErrorMessage="收货人地址不能为空！"></asp:RequiredFieldValidator>
                    </label>
                </td>
            </tr>
            <tr>
                <td>
                    省：
                </td>
                <td>
                    <label>
                        &nbsp;<asp:DropDownList ID="ddlProvince" runat="server" 
                        AutoPostBack="True" onselectedindexchanged="ddlProvince_SelectedIndexChanged" 
                        style="height: 22px" >
                        </asp:DropDownList>
                        &nbsp; 市：<asp:DropDownList ID="ddlCity" runat="server">
                        </asp:DropDownList>
                    </label>
                </td>
            </tr>
            <tr>
                <td>
                    邮编：
                </td>
                <td>
                    <label>
                        &nbsp;<asp:TextBox ID="tbZip" runat="server"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="revZip" runat="server" 
                        ControlToValidate="tbZip" ErrorMessage="邮编你得输对吧！" ValidationExpression="\d{6}"></asp:RegularExpressionValidator>
                    </label>
                </td>
            </tr>
                        <tr>
                <td>
                    邮寄方式：
                </td>
                <td>
                    <label>
                        &nbsp;<asp:DropDownList ID="ddlPostType" runat="server">
                        <asp:ListItem>普通邮递</asp:ListItem>
                        <asp:ListItem Selected="True">普通快递送货上门</asp:ListItem>
                        <asp:ListItem>加急快递送货上门</asp:ListItem>
                        <asp:ListItem>邮政特快专递(EMS)</asp:ListItem>
                    </asp:DropDownList>
                    </label>
                </td>
            </tr>
            <tr>
                <td>
                    电话：
                </td>
                <td>
                    <label>
                        &nbsp;<asp:TextBox ID="tbPhone" runat="server"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="revPhone" runat="server" 
                        ControlToValidate="tbPhone" ErrorMessage="请输入正确的电话号码？" 
                        ValidationExpression="((\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$)"></asp:RegularExpressionValidator>
                    </label>
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <asp:LinkButton ID="lbPay" runat="server" onclick="lbPay_Click">下一步</asp:LinkButton>
                </td>
                </label></td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
